
import http from "@/utils/vmeitime-http/index.js";

export const getbrandApplyList = (data) => http.get("/applet_user/brand/list", data);
export const addBrandArea = (data) => http.post("/applet_user/brand/add", data);
export const reGetBrandArea = (data) => http.post("/applet_user/brand/reApply", data); // 重新申请
export const delbrandApply = (data) => http.post("/applet_user/brand/del", data);
export const getbrandApplyDetail = (data) => http.get("/applet_user/brand/info", data);

// 获取所有的品牌数据
export const getAllBrandList = (data) => http.get("/applet_user/brand/getAllBrand", data);

// 根据code值获取省市区
export const getCityAreaList = (data) => {
    if (!data.parent_code) return http.get("/applet_user/area/getArea")
    return http.get("/applet_user/area/getArea", data)
};
